from building import * 
import rtconfig

cwd  = GetCurrentDir()
src=[]
inc=[]
 
inc = inc + [cwd+"/awtk/src/ext_widgets"]
inc = inc + [cwd+"/awtk"]
inc = inc + [cwd+"/awtk/src"]
inc = inc + [cwd+"/awtk/3rd"]
inc = inc + [cwd+"/awtk/3rd/nanovg/base"]
inc = inc + [cwd+"/awtk/3rd/nanovg"]
inc = inc + [cwd+"/awtk/3rd/agge"]
inc = inc + [cwd+"/awtk/3rd/libunibreak"]
inc = inc + [cwd+"/awtk/3rd/gpinyin/include"]
inc = inc + [cwd+"/awtk-port"]
#inc = inc + [cwd+"/awtk/src/platforms/common"]

src+= Glob('./awtk/3rd/agge/agge/math.cpp')
src+= Glob('./awtk/3rd/agge/agge/stroke.cpp')
src+= Glob('./awtk/3rd/agge/agge/stroke_features.cpp')
src+= Glob('./awtk/3rd/agge/agge/vector_rasterizer.cpp')
src+= Glob('./awtk/3rd/libunibreak/emojidef.c')
src+= Glob('./awtk/3rd/libunibreak/graphemebreak.c')
src+= Glob('./awtk/3rd/libunibreak/linebreak.c')
src+= Glob('./awtk/3rd/libunibreak/linebreakdata.c')
src+= Glob('./awtk/3rd/libunibreak/linebreakdef.c')
src+= Glob('./awtk/3rd/libunibreak/unibreakbase.c')
src+= Glob('./awtk/3rd/libunibreak/unibreakdef.c')
src+= Glob('./awtk/3rd/libunibreak/wordbreak.c')
src+= Glob('./awtk/3rd/nanovg/agge/nanovg_agge.cpp')
src+= Glob('./awtk/3rd/nanovg/agge/nanovg_vertex.cpp')
src+= Glob('./awtk/3rd/nanovg/base/nanovg.c')
src+= Glob('./awtk/src/awtk_global.c')
src+= Glob('./awtk/src/base/asset_loader.c')
src+= Glob('./awtk/src/base/asset_loader_default.c')
src+= Glob('./awtk/src/base/assets_manager.c')
src+= Glob('./awtk/src/base/bitmap.c')
src+= Glob('./awtk/src/base/canvas.c')
src+= Glob('./awtk/src/base/children_layouter.c')
src+= Glob('./awtk/src/base/children_layouter_factory.c')
src+= Glob('./awtk/src/base/clip_board.c')
src+= Glob('./awtk/src/base/date_time_format.c')
src+= Glob('./awtk/src/base/dialog.c')
src+= Glob('./awtk/src/base/dialog_highlighter.c')
src+= Glob('./awtk/src/base/dialog_highlighter_factory.c')
src+= Glob('./awtk/src/base/data_reader_asset.c')
src+= Glob('./awtk/src/base/enums.c')
src+= Glob('./awtk/src/base/event_queue.c')
src+= Glob('./awtk/src/base/events.c')
src+= Glob('./awtk/src/base/font.c')
src+= Glob('./awtk/src/base/font_loader.c')
src+= Glob('./awtk/src/base/font_manager.c')
src+= Glob('./awtk/src/base/glyph_cache.c')
src+= Glob('./awtk/src/base/graphic_buffer.c')
src+= Glob('./awtk/src/base/hscrollable.c')
src+= Glob('./awtk/src/base/idle.c')
src+= Glob('./awtk/src/base/image_base.c')
src+= Glob('./awtk/src/base/image_loader.c')
src+= Glob('./awtk/src/base/image_manager.c')
src+= Glob('./awtk/src/base/input_device_status.c')
src+= Glob('./awtk/src/base/input_engine.c')
src+= Glob('./awtk/src/base/input_method.c')
src+= Glob('./awtk/src/base/layout.c')
src+= Glob('./awtk/src/base/lcd.c')
src+= Glob('./awtk/src/base/lcd_profile.c')
src+= Glob('./awtk/src/base/line_break.c')
src+= Glob('./awtk/src/base/locale_info.c')
src+= Glob('./awtk/src/base/main_loop.c')
src+= Glob('./awtk/src/base/native_window.c')
src+= Glob('./awtk/src/base/self_layouter.c')
src+= Glob('./awtk/src/base/self_layouter_factory.c')
src+= Glob('./awtk/src/base/shortcut.c')
src+= Glob('./awtk/src/base/style.c')
src+= Glob('./awtk/src/base/style_const.c')
src+= Glob('./awtk/src/base/style_factory.c')
src+= Glob('./awtk/src/base/style_mutable.c')
src+= Glob('./awtk/src/base/suggest_words.c')
src+= Glob('./awtk/src/base/system_info.c')
src+= Glob('./awtk/src/base/text_edit.c')
src+= Glob('./awtk/src/base/theme.c')
src+= Glob('./awtk/src/base/timer.c')
src+= Glob('./awtk/src/base/ui_builder.c')
src+= Glob('./awtk/src/base/ui_feedback.c')
src+= Glob('./awtk/src/base/ui_loader.c')
src+= Glob('./awtk/src/base/velocity.c')
src+= Glob('./awtk/src/base/vgcanvas.c')
src+= Glob('./awtk/src/base/widget.c')
src+= Glob('./awtk/src/base/widget_animator.c')
src+= Glob('./awtk/src/base/widget_animator_factory_null.c')
src+= Glob('./awtk/src/base/widget_animator_manager.c')
src+= Glob('./awtk/src/base/widget_factory.c')
src+= Glob('./awtk/src/base/widget_vtable.c')
src+= Glob('./awtk/src/base/window.c')
src+= Glob('./awtk/src/base/window_animator.c')
src+= Glob('./awtk/src/base/window_animator_factory.c')
src+= Glob('./awtk/src/base/window_base.c')
src+= Glob('./awtk/src/base/window_manager.c')
src+= Glob('./awtk/src/blend/blend_image_bgr565_bgr565.c')
src+= Glob('./awtk/src/blend/blend_image_bgr565_bgra8888.c')
src+= Glob('./awtk/src/blend/blend_image_bgr565_rgb565.c')
src+= Glob('./awtk/src/blend/blend_image_bgr565_rgba8888.c')
src+= Glob('./awtk/src/blend/blend_image_bgr888_bgr565.c')
src+= Glob('./awtk/src/blend/blend_image_bgr888_bgr888.c')
src+= Glob('./awtk/src/blend/blend_image_bgr888_bgra8888.c')
src+= Glob('./awtk/src/blend/blend_image_bgr888_rgb565.c')
src+= Glob('./awtk/src/blend/blend_image_bgr888_rgba8888.c')
src+= Glob('./awtk/src/blend/blend_image_bgra8888_bgr565.c')
src+= Glob('./awtk/src/blend/blend_image_bgra8888_bgra8888.c')
src+= Glob('./awtk/src/blend/blend_image_bgra8888_rgb565.c')
src+= Glob('./awtk/src/blend/blend_image_bgra8888_rgba8888.c')
src+= Glob('./awtk/src/blend/blend_image_rgb565_bgr565.c')
src+= Glob('./awtk/src/blend/blend_image_rgb565_bgra8888.c')
src+= Glob('./awtk/src/blend/blend_image_rgb565_rgb565.c')
src+= Glob('./awtk/src/blend/blend_image_rgb565_rgba8888.c')
src+= Glob('./awtk/src/blend/blend_image_rgb888_bgr565.c')
src+= Glob('./awtk/src/blend/blend_image_rgb888_bgra8888.c')
src+= Glob('./awtk/src/blend/blend_image_rgb888_rgb565.c')
src+= Glob('./awtk/src/blend/blend_image_rgb888_rgb888.c')
src+= Glob('./awtk/src/blend/blend_image_rgb888_rgba8888.c')
src+= Glob('./awtk/src/blend/blend_image_rgba8888_bgr565.c')
src+= Glob('./awtk/src/blend/blend_image_rgba8888_bgra8888.c')
src+= Glob('./awtk/src/blend/blend_image_rgba8888_rgb565.c')
src+= Glob('./awtk/src/blend/blend_image_rgba8888_rgba8888.c')
src+= Glob('./awtk/src/blend/fill_image_abgr8888.c')
src+= Glob('./awtk/src/blend/fill_image_argb8888.c')
src+= Glob('./awtk/src/blend/fill_image_bgr565.c')
src+= Glob('./awtk/src/blend/fill_image_bgr888.c')
src+= Glob('./awtk/src/blend/fill_image_bgra8888.c')
src+= Glob('./awtk/src/blend/fill_image_rgb565.c')
src+= Glob('./awtk/src/blend/fill_image_rgb888.c')
src+= Glob('./awtk/src/blend/fill_image_rgba8888.c')
src+= Glob('./awtk/src/blend/image_g2d.c')
src+= Glob('./awtk/src/blend/rotate_image_bgr565.c')
src+= Glob('./awtk/src/blend/rotate_image_bgr888.c')
src+= Glob('./awtk/src/blend/rotate_image_bgra8888.c')
src+= Glob('./awtk/src/blend/rotate_image_rgb565.c')
src+= Glob('./awtk/src/blend/rotate_image_rgb888.c')
src+= Glob('./awtk/src/blend/rotate_image_rgba8888.c')
src+= Glob('./awtk/src/blend/soft_g2d.c')
src+= Glob('./awtk/src/blend/stm32_g2d.c')
src+= Glob('./awtk/src/clip_board/clip_board_default.c')
src+= Glob('./awtk/src/dialog_highlighters/dialog_highlighter_builtins.c')
src+= Glob('./awtk/src/dialog_highlighters/dialog_highlighter_default.c')
src+= Glob('./awtk/src/ext_widgets/canvas_widget/canvas_widget.c')
src+= Glob('./awtk/src/ext_widgets/color_picker/color_component.c')
src+= Glob('./awtk/src/ext_widgets/color_picker/color_picker.c')
src+= Glob('./awtk/src/ext_widgets/color_picker/rgb_and_hsv.c')
src+= Glob('./awtk/src/ext_widgets/combo_box_ex/combo_box_ex.c')
src+= Glob('./awtk/src/ext_widgets/ext_widgets.c')
src+= Glob('./awtk/src/ext_widgets/features/draggable.c')
src+= Glob('./awtk/src/ext_widgets/file_browser/file_browser.c')
src+= Glob('./awtk/src/ext_widgets/file_browser/file_browser_view.c')
src+= Glob('./awtk/src/ext_widgets/file_browser/file_chooser.c')
src+= Glob('./awtk/src/ext_widgets/gif_image/gif_image.c')
src+= Glob('./awtk/src/ext_widgets/gauge/gauge.c')
src+= Glob('./awtk/src/ext_widgets/gauge/gauge_pointer.c')
src+= Glob('./awtk/src/ext_widgets/image_animation/image_animation.c')
src+= Glob('./awtk/src/ext_widgets/image_value/image_value.c')
src+= Glob('./awtk/src/ext_widgets/keyboard/candidates.c')
src+= Glob('./awtk/src/ext_widgets/keyboard/keyboard.c')
src+= Glob('./awtk/src/ext_widgets/keyboard/lang_indicator.c')
src+= Glob('./awtk/src/ext_widgets/mledit/line_number.c')
src+= Glob('./awtk/src/ext_widgets/mledit/mledit.c')
src+= Glob('./awtk/src/ext_widgets/mutable_image/mutable_image.c')
src+= Glob('./awtk/src/ext_widgets/progress_circle/progress_circle.c')
src+= Glob('./awtk/src/ext_widgets/rich_text/rich_text.c')
src+= Glob('./awtk/src/ext_widgets/rich_text/rich_text_node.c')
src+= Glob('./awtk/src/ext_widgets/rich_text/rich_text_parser.c')
src+= Glob('./awtk/src/ext_widgets/rich_text/rich_text_render_node.c')
src+= Glob('./awtk/src/ext_widgets/rich_text/rich_text_view.c')
src+= Glob('./awtk/src/ext_widgets/scroll_label/hscroll_label.c')
src+= Glob('./awtk/src/ext_widgets/scroll_view/children_layouter_list_view.c')
src+= Glob('./awtk/src/ext_widgets/scroll_view/list_item.c')
src+= Glob('./awtk/src/ext_widgets/scroll_view/list_view.c')
src+= Glob('./awtk/src/ext_widgets/scroll_view/list_view_h.c')
src+= Glob('./awtk/src/ext_widgets/scroll_view/scroll_bar.c')
src+= Glob('./awtk/src/ext_widgets/scroll_view/scroll_view.c')
src+= Glob('./awtk/src/ext_widgets/slide_menu/slide_menu.c')
src+= Glob('./awtk/src/ext_widgets/slide_view/slide_indicator.c')
src+= Glob('./awtk/src/ext_widgets/slide_view/slide_view.c')
src+= Glob('./awtk/src/ext_widgets/svg_image/svg_image.c')
src+= Glob('./awtk/src/ext_widgets/switch/switch.c')
src+= Glob('./awtk/src/ext_widgets/text_selector/text_selector.c')
src+= Glob('./awtk/src/ext_widgets/time_clock/time_clock.c')
src+= Glob('./awtk/src/font_loader/font_loader_bitmap.c')
src+= Glob('./awtk/src/font_loader/font_loader_stb.c')
src+= Glob('./awtk/src/graphic_buffer/graphic_buffer_default.c')
src+= Glob('./awtk/src/image_loader/image_loader_stb.c')
src+= Glob('./awtk/src/input_engines/input_engine_null.c')
src+= Glob('./awtk/src/input_methods/input_method_creator.c')
src+= Glob('./awtk/src/layouters/children_layouter_builtins.c')
src+= Glob('./awtk/src/layouters/children_layouter_default.c')
src+= Glob('./awtk/src/layouters/children_layouter_parser.c')
src+= Glob('./awtk/src/layouters/self_layouter_builtins.c')
src+= Glob('./awtk/src/layouters/self_layouter_default.c')
src+= Glob('./awtk/src/layouters/self_layouter_menu.c')
src+= Glob('./awtk/src/layouters/self_layouter_parser.c')
src+= Glob('./awtk/src/lcd/lcd_mem_bgr565.c')
src+= Glob('./awtk/src/lcd/lcd_mem_bgr888.c')
src+= Glob('./awtk/src/lcd/lcd_mem_bgra8888.c')
src+= Glob('./awtk/src/lcd/lcd_mem_rgb565.c')
src+= Glob('./awtk/src/lcd/lcd_mem_rgba8888.c')
src+= Glob('./awtk/src/main_loop/main_loop_simple.c')
# src+= Glob('./awtk/src/misc/new.cpp')
src+= Glob('./awtk/src/native_window/native_window_raw.c')


#src+= Glob('./awtk/src/platforms/raw/cond_var_null.c')
#src+= Glob('./awtk/src/platforms/raw/mutex_null.c')
#src+= Glob('./awtk/src/platforms/raw/sys_tick_handler.c')

src+= Glob('./awtk/src/platforms/raw/fs_os.c')
src+= Glob('./awtk/src/platforms/rtt/thread.c')
src+= Glob('./awtk/src/platforms/rtt/mutex.c')
#src+= Glob('./awtk/src/platforms/rtt/rtos.c')
src+= Glob('./awtk/src/platforms/rtt/semaphore.c')
#src+= Glob('./awtk/src/platforms/common/sys_tick_handler.c')



src+= Glob('./awtk/src/svg/bsvg.c')
src+= Glob('./awtk/src/svg/bsvg_builder.c')
src+= Glob('./awtk/src/svg/bsvg_draw.c')
src+= Glob('./awtk/src/svg/bsvg_to_svg.c')
src+= Glob('./awtk/src/svg/svg_path.c')
src+= Glob('./awtk/src/svg/svg_path_parser.c')
src+= Glob('./awtk/src/svg/svg_shape.c')
src+= Glob('./awtk/src/svg/svg_to_bsvg.c')

src+= Glob('./awtk/src/tkc/asset_info.c')
src+= Glob('./awtk/src/tkc/buffer.c')
src+= Glob('./awtk/src/tkc/color.c')
src+= Glob('./awtk/src/tkc/color_parser.c')
src+= Glob('./awtk/src/tkc/compressor.c')
src+= Glob('./awtk/src/tkc/crc.c')
src+= Glob('./awtk/src/tkc/darray.c')
src+= Glob('./awtk/src/tkc/data_reader.c')
src+= Glob('./awtk/src/tkc/data_reader_factory.c')
src+= Glob('./awtk/src/tkc/data_reader_file.c')
src+= Glob('./awtk/src/tkc/data_writer.c')
src+= Glob('./awtk/src/tkc/data_writer_factory.c')
src+= Glob('./awtk/src/tkc/data_writer_file.c')
src+= Glob('./awtk/src/tkc/date_time.c')
src+= Glob('./awtk/src/tkc/easing.c')
src+= Glob('./awtk/src/tkc/emitter.c')
src+= Glob('./awtk/src/tkc/event.c')
src+= Glob('./awtk/src/tkc/event_source.c')
src+= Glob('./awtk/src/tkc/event_source_fd.c')
src+= Glob('./awtk/src/tkc/event_source_idle.c')
src+= Glob('./awtk/src/tkc/event_source_manager.c')
src+= Glob('./awtk/src/tkc/event_source_manager_default.c')
src+= Glob('./awtk/src/tkc/event_source_timer.c')
src+= Glob('./awtk/src/tkc/expr_eval.c')
src+= Glob('./awtk/src/tkc/fs.c')
src+= Glob('./awtk/src/tkc/fscript.c')
src+= Glob('./awtk/src/tkc/func_call_parser.c')
src+= Glob('./awtk/src/tkc/idle_info.c')
src+= Glob('./awtk/src/tkc/idle_manager.c')
src+= Glob('./awtk/src/tkc/int_str.c')
src+= Glob('./awtk/src/tkc/iostream.c')
src+= Glob('./awtk/src/tkc/istream.c')
src+= Glob('./awtk/src/tkc/log.c')
src+= Glob('./awtk/src/tkc/matrix.c')
src+= Glob('./awtk/src/tkc/mem.c')
src+= Glob('./awtk/src/tkc/named_value.c')
src+= Glob('./awtk/src/tkc/object.c')
src+= Glob('./awtk/src/tkc/object_array.c')
src+= Glob('./awtk/src/tkc/object_default.c')
src+= Glob('./awtk/src/tkc/object_locker.c')
src+= Glob('./awtk/src/tkc/ostream.c')
src+= Glob('./awtk/src/tkc/path.c')
src+= Glob('./awtk/src/tkc/rect.c')
src+= Glob('./awtk/src/tkc/ring_buffer.c')
src+= Glob('./awtk/src/tkc/rom_fs.c')
src+= Glob('./awtk/src/tkc/slist.c')
src+= Glob('./awtk/src/tkc/socket_pair.c')
src+= Glob('./awtk/src/tkc/str.c')
src+= Glob('./awtk/src/tkc/str_str.c')
src+= Glob('./awtk/src/tkc/time_now.c')
src+= Glob('./awtk/src/tkc/timer_info.c')
src+= Glob('./awtk/src/tkc/timer_manager.c')
src+= Glob('./awtk/src/tkc/tokenizer.c')
src+= Glob('./awtk/src/tkc/utf8.c')
src+= Glob('./awtk/src/tkc/utils.c')
src+= Glob('./awtk/src/tkc/value.c')
src+= Glob('./awtk/src/tkc/value_desc.c')
src+= Glob('./awtk/src/tkc/wstr.c')
src+= Glob('./awtk/src/ui_loader/ui_binary_writer.c')
src+= Glob('./awtk/src/ui_loader/ui_builder_default.c')
src+= Glob('./awtk/src/ui_loader/ui_loader_default.c')
src+= Glob('./awtk/src/ui_loader/ui_loader_xml.c')
src+= Glob('./awtk/src/ui_loader/ui_serializer.c')
src+= Glob('./awtk/src/ui_loader/ui_xml_writer.c')
src+= Glob('./awtk/src/ui_loader/window_open.c')
src+= Glob('./awtk/src/vgcanvas/vgcanvas_nanovg_soft.c')
src+= Glob('./awtk/src/widget_animators/widget_animator_factory.c')
src+= Glob('./awtk/src/widget_animators/widget_animator_prop.c')
src+= Glob('./awtk/src/widget_animators/widget_animator_prop2.c')
src+= Glob('./awtk/src/widget_animators/widget_animator_scroll.c')
src+= Glob('./awtk/src/widgets/app_bar.c')
src+= Glob('./awtk/src/widgets/button.c')
src+= Glob('./awtk/src/widgets/button_group.c')
src+= Glob('./awtk/src/widgets/calibration_win.c')
src+= Glob('./awtk/src/widgets/check_button.c')
src+= Glob('./awtk/src/widgets/clip_view.c')
src+= Glob('./awtk/src/widgets/color_tile.c')
src+= Glob('./awtk/src/widgets/column.c')
src+= Glob('./awtk/src/widgets/combo_box.c')
src+= Glob('./awtk/src/widgets/combo_box_item.c')
src+= Glob('./awtk/src/widgets/dialog_client.c')
src+= Glob('./awtk/src/widgets/dialog_helper.c')
src+= Glob('./awtk/src/widgets/dialog_title.c')
src+= Glob('./awtk/src/widgets/digit_clock.c')
src+= Glob('./awtk/src/widgets/dragger.c')
src+= Glob('./awtk/src/widgets/edit.c')
src+= Glob('./awtk/src/widgets/grid.c')
src+= Glob('./awtk/src/widgets/grid_item.c')
src+= Glob('./awtk/src/widgets/group_box.c')
src+= Glob('./awtk/src/widgets/image.c')
src+= Glob('./awtk/src/widgets/label.c')
src+= Glob('./awtk/src/widgets/overlay.c')
src+= Glob('./awtk/src/widgets/pages.c')
src+= Glob('./awtk/src/widgets/popup.c')
src+= Glob('./awtk/src/widgets/progress_bar.c')
src+= Glob('./awtk/src/widgets/row.c')
src+= Glob('./awtk/src/widgets/slider.c')
src+= Glob('./awtk/src/widgets/spin_box.c')
src+= Glob('./awtk/src/widgets/system_bar.c')
src+= Glob('./awtk/src/widgets/tab_button.c')
src+= Glob('./awtk/src/widgets/tab_button_group.c')
src+= Glob('./awtk/src/widgets/tab_control.c')
src+= Glob('./awtk/src/widgets/view.c')
src+= Glob('./awtk/src/widgets/widgets.c')
src+= Glob('./awtk/src/window_animators/window_animator_builtins.c')
src+= Glob('./awtk/src/window_animators/window_animator_center_scale.c')
src+= Glob('./awtk/src/window_animators/window_animator_common.c')
src+= Glob('./awtk/src/window_animators/window_animator_fade.c')
src+= Glob('./awtk/src/window_animators/window_animator_htranslate.c')
src+= Glob('./awtk/src/window_animators/window_animator_popdown.c')
src+= Glob('./awtk/src/window_animators/window_animator_popup.c')
src+= Glob('./awtk/src/window_animators/window_animator_slide.c')
src+= Glob('./awtk/src/window_animators/window_animator_slide_down.c')
src+= Glob('./awtk/src/window_animators/window_animator_slide_left.c')
src+= Glob('./awtk/src/window_animators/window_animator_slide_right.c')
src+= Glob('./awtk/src/window_animators/window_animator_slide_up.c')
src+= Glob('./awtk/src/window_animators/window_animator_vtranslate.c')
src+= Glob('./awtk/src/window_manager/window_manager_default.c')
src+= Glob('./awtk/src/xml/xml_builder.c')
src+= Glob('./awtk/src/xml/xml_parser.c')


inc += [cwd+"/awtk-port"]
src += Glob('./awtk-port/*.c')

if GetDepend('PKG_USING_AWTK_DEMO'):
    src += Glob('./demo/gui_main.c')
    if GetDepend('PKG_USING_AWTK_DEFAULT_DEMO'):
        src += Glob('./awtk/demos/assets-mini.c')
        src += Glob('./awtk/demos/demo_basic.c')
    elif GetDepend('PKG_USING_AWTK_CHART_DEMO'):
        src += Glob('./awtk-examples/Chart-Demo/src/*.c')
        src += Glob('./awtk-examples/Chart-Demo/src/custom_widgets/*.c')
        src += Glob('./awtk-examples/Chart-Demo/src/custom_widgets/*/*.c')
    elif GetDepend('PKG_USING_AWTK_CLEAN_AIR_DEMO'):
        src += Glob('./awtk-examples/CleanAir-Demo/src/*.c')
    elif GetDepend('PKG_USING_AWTK_MUSIC_PLAYER_DEMO'):
        src += Glob('./awtk-examples/MusicPlayer-Demo/src/*.c')
        src += Glob('./awtk-examples/MusicPlayer-Demo/src/custom_function/*.c')    
        src += Glob('./awtk-examples/MusicPlayer-Demo/src/custom_widgets/*.c')
        src += Glob('./awtk-examples/MusicPlayer-Demo/src/custom_widgets/*/*.c')
    elif GetDepend('PKG_USING_AWTK_SMART_WATCH_DEMO'):
        src += Glob('./awtk-examples/SmartWatch.v2-Demo/src/*.c')
        src += Glob('./awtk-examples/SmartWatch.v2-Demo/src/custom_widgets/*.c')
        src += Glob('./awtk-examples/SmartWatch.v2-Demo/src/watch/*.c')
        src += Glob('./awtk-examples/SmartWatch.v2-Demo/src/application/*.c')
        src += Glob('./awtk-examples/SmartWatch.v2-Demo/src/slide_appliction/*.c')
        src += Glob('./awtk-examples/SmartWatch.v2-Demo/src/common/*.c')
    elif GetDepend('PKG_USING_AWTK_HELLOWORLD_DEMO'):
        src += Glob('./awtk-examples/HelloWorld-Demo/src/*.c')
    elif GetDepend('PKG_USING_AWTK_HELLOWORLD_MAX_DEMO'):
        src += Glob('./awtk-examples/HelloWorld.Max-Demo/src/*.c')
    elif GetDepend('PKG_USING_AWTK_HELLOWORLD_XML_DEMO'):
        src += Glob('./awtk-examples/HelloWorld.Xml-Demo/src/*.c')

LOCAL_CCFLAGS = ''

if rtconfig.CROSS_TOOL == 'gcc':
    LOCAL_CCFLAGS += ' -DHAS_AWTK_CONFIG'
elif rtconfig.CROSS_TOOL == 'keil':
    LOCAL_CCFLAGS += ' --c99 --gnu -g -W'

group = DefineGroup('AWTK', src, depend = ['PKG_USING_AWTK'], CPPPATH = inc,LOCAL_CCFLAGS = LOCAL_CCFLAGS)

Return('group')